const info = {
  name: "frank",
  friend: { name: "why" },
};

const obj = { ...info, age: 18 };
console.log(obj);

obj.name = "coder";
obj.friend.name = "james";
console.log(info.name);
console.log(info.friend.name);
